import createAxios from '/@/utils/axios'
export const controllerUrl = '/admin/placeOrder.OneShot/'

export function index() {
    return createAxios({
        url: controllerUrl + 'index',
        method: 'get',
    })
}

export function add() {
    return createAxios({
        url: controllerUrl + 'add',
        method: 'get',
    })
}

export function copyOrder(id: number) {
    return createAxios({
        url: controllerUrl + 'copyOrder',
        method: 'get',
        params: {
            id: id,
        },
    })
}
